package com.example.coolweather;

import android.app.Application;

import com.example.coolweather.db.SiteDBHelper;
import com.example.coolweather.gson.Weather;
import com.example.coolweather.info.CityInfo;
import com.example.coolweather.info.CountyInfo;
import com.example.coolweather.info.ProvinceInfo;
import com.example.coolweather.util.SharedUtil;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class MyApplication extends Application {
    private static MyApplication mApp;
    public static MyApplication getInstance() {
        return mApp;
    }
    // 缓存信息，这样不用每一次都去查询服务器
    public Map<String, Weather> mWeatherMap = new HashMap<>(); // 这个只适合应用没有退出的时候使用，否则请选择Share缓存或者数据库

    @Override
    public void onCreate() {
        super.onCreate();
        mApp = this;
    }

}
